package Test.test4.exam1;

import java.io.Serializable;

public class Student implements Serializable {//学生类
    private static final long serialVersionUID = 5007560687442912124L;
    private int no;
    private String name;
    private int age;
    private String sex;

    public Student(int age, int no, String name, String sex) {
        this.age = age;
        this.no = no;
        this.name = name;
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "学生信息{" +
                "name=" + name +
                ", no=" + no +
                ", age='" + age + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
